package com.tengju.bff.interfaces.manage.crm.activity.form;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.tengju.bff.interfaces.shared.servlet.ServletContextUtil;
import com.tengju.user.application.archives.dto.PageQueryDTO;
import com.tengju.user.domain.model.user.UserIdCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: 大木
 * @date: 2021/10/24 8:45 下午
 */
@Data
@ApiModel(value = "ActivityBaseQuery", description = "活动基本查询Query")
public class ActivityBaseQuery extends PageQueryDTO {

    @ApiModelProperty("活动ID")
    @NotNull(message = "活动ID不能为空")
    private Long activityId;

    @ApiModelProperty("活动目标主体id（商品id，品牌id，礼包类型）")
    private Long activitySubjectId;

    @JsonIgnore
    private List<UserIdCode> userIdCodeList = ServletContextUtil.getServletContext().getGenSecIdCodes();

}
